package cn.mabach.goods.service;

import cn.mabach.DTO.PageUtils;
import cn.mabach.DTO.RS;
import cn.mabach.goods.entity.StockBackEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
/**
 * 
 *
 * @author chenshun
 * @email 176468159@qq.com
 * @date 2019-12-20 13:30:34
 */
@Api(tags = "库存服务接口")
public interface StockBackService   {


    @GetMapping("/listStockBack")
    @ApiOperation(value = "分页查询")
    RS<PageUtils> queryPage(@RequestParam Map<String, Object> params);

    @GetMapping("/infoStockBack")
    @ApiOperation(value = "根据id查找")
    RS<StockBackEntity> getByIdE(@RequestParam("id") String id);

    @PostMapping("/saveStockBack")
    @ApiOperation(value = "保存")
    RS saveE(@RequestBody StockBackEntity entity);

    @PostMapping("/updateStockBack")
    @ApiOperation(value = "修改")
    RS updateByIdE(@RequestBody StockBackEntity entity);

    @PostMapping("/deleteStockBack")
    @ApiOperation(value = "根据ID集合删除")
    RS removeByIdsE(@RequestBody List<String> ids);
}

